@mixin text-line($value) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $value;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  word-break: break-all;
}
.dashboard-refactor {
  position: relative;
  z-index: 0;
  background-color: #F7F8FA;
  .dashboard-head-box {
    padding: 20px 20px 26px 40px;
    background-color: #fff;
    .max-wrapper {
      max-width: 1460px;
      margin: 0 auto;
    }
    .title-and-switch {
      display: flex;
      justify-content: left;
      margin-bottom: 20px;
      .home-title {
        font-weight: 500;
        font-size: 16px;
        color: #1E2126;
        letter-spacing: 0.1px;
        line-height: 24px;
        margin-right: 12px;
      }
      .edit-button-group {
        display: flex;
        flex-direction: row;
        justify-content: end;
        .page-change-url {
          background: #F7F8FA;
          border-radius: 4px;
          padding: 4px 8px;
          margin-left: 8px;
          cursor: pointer;
          user-select: none;
          text-align: center;
          font-size: 10px;
          color: #4e5b71;
          letter-spacing: 0;
          line-height: 16px;
          transition: all ease 0.3s;
          &:hover {
            color: #1F70FC;
          }
          &:focus {
            color: #1F70FC;
          }
        }
      }
    }
    .operate-box {
      display: flex;
      justify-content: space-between;
    }
    .save-exit {
      flex-shrink: 0;
    }
    .operate {
      h2 {
        font-weight: 600;
        font-size: 20px;
        color: rgba(0, 0, 0, 0.85);
      }
      .operate-item {
        display: inline-block;
        margin-right: 16px;
        color: #575757;
        cursor: pointer;
        i {
          margin-right: 4px;
        }
        &:hover {
          color: $default-color;
        }
      }
      .default-color-font {
        color: $default-color;
      }
    }
    .finish-and-save {
      display: inline-block;
      color: $default-color;
      cursor: pointer;
      margin: 20px;
      i {
        margin-left: 4px;
      }
      .default-color-font {
        color: $default-color;
      }
    }
  }
  .loading-box {
    height: calc(100vh - 208px);
    width: 100%;
  }
  .dashboard-content-box {
    margin: 20px auto;
    width: calc(100% - 20px);
    max-width: 1500px;
    position: relative;

    .two-third-width {
      display: block;
      position: absolute;
      width: calc(((100% - 40px)/3)*2);
      background-color: #fff;
      border-radius: 8px;
      margin: 0 10px 20px 10px;
    }

    .one-third-width {
      display: block;
      position: absolute;
      width: calc((100% - 40px)/3);
      background-color: #fff;
      border-radius: 8px;
      margin: 0 10px 20px 10px;
    }

    .full-third-width {
      display: block;
      position: absolute;
      width: calc(100% - 20px);
      background-color: #fff;
      border-radius: 8px;
      margin: 0 10px 20px 10px;
    }

    .home-title {
      font-weight: 500;
      font-size: 16px;
      color: #1E2126;
      letter-spacing: 0.1px;
      line-height: 24px;
    }

    .card-placeholder {
      z-index: 0;
      background-color: #d2e1fa;
      border-radius: 8px;
    }
    .card-dragging {
      box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
      z-index: 1;
      cursor: grabbing;
    }
    .card-releasing {
      box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
      z-index: 1;
      cursor: grab;
    }

    &.enable-drag {
      .two-third-width {
        cursor: grab !important;
      }
      .one-third-width {
        cursor: grab !important;
      }
      .full-third-width {
        cursor: grab !important;
      }
      .card-dragging {
        cursor: grabbing !important;
      }
    }
    .toggle-drag-box {
      z-index: 2;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
  }
  &::-webkit-scrollbar {
    display: none;
  }
  .ant-select-dropdown-menu-item-group-title {
    @include text-line(1);
  }
}

@media screen and (max-width: 1200px) {
  .dashboard-refactor .dashboard-content .max-content {

  }
}
